package online_exams.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 试题信息表(TQuestion)表实体类
 *
 * @author makejava
 * @since 2024-12-19 16:50:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TQuestionEntity {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 题目内容
     */
    @TableField(value = "title")
    private String title;
    /**
     * 题目类型：选择题、填空题、编程题
     */
    @TableField(value = "type")
    private Object type;
    /**
     * 难度等级：1-简单，2-中等，3-困难
     */
    @TableField(value = "difficulty")
    private Integer difficulty;
    /**
     * 题目分值
     */
    @TableField(value = "score")
    private Integer score;
    /**
     * 标准答案
     */
    @TableField(value = "answer")
    private String answer;
    /**
     * 题目解析
     */
    @TableField(value = "explanation")
    private String explanation;
    /**
     * 选择题选项，JSON格式
     */
    @TableField(value = "options")
    private Object options;
    /**
     * 编程题测试用例，JSON格式
     */
    @TableField(value = "test_cases")
    private Object testCases;
    /**
     * 所属分类ID
     */
    @TableField(value = "category_id")
    private Integer categoryId;
    /**
     * 创建人ID
     */
    @TableField(value = "create_by")
    private Integer createBy;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;


}

